<?php
include_once '../common_mbs.inc.php';
include_once '../smarty.inc.php';

//判断访问权限
$admin_index_module_obj = new osgh_admin_index_module_cls();
$is_warrant = $admin_index_module_obj->is_have_warrant($_ADMIN_ID,'consulting_list');
if(!$is_warrant) tcmc_cls::ShowMsg("没有权限访问！", "../index_body.html");

$act = trim($_INPUT['action']);

$product_obj  = new product_cls();
$product_list = $product_obj->get_product_list(false, '', '', '');
$smarty->assign('product_list',$product_list);


if($act == 'edit')
{
	$consulting_id = $_INPUT['consulting_id'];
	$consulting_obj = new consulting_cls();
	$consulting_arr = $consulting_obj->get_consulting_info($consulting_id);
	$smarty->assign('consulting_arr' ,$consulting_arr);
}

$smarty->display('expand/save_consulting.tpl');

?>
